package com.ruoyi.ora.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * app给设备发送的消息，设备端轮训获取对象 ora_device_message
 * 
 * @author liuwp
 * @date 2025-06-19
 */
public class DeviceMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 设备id */
    @Excel(name = "设备id")
    private Long deviceId;

    /** 设备sn */
    @Excel(name = "设备sn")
    private String deviceSn;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 录音 */
    @Excel(name = "录音")
    private String voicePath;

    /** 已读状态 */
    @Excel(name = "已读状态", dictType = "sys_yes_no")
    private Integer readStatus;

    private Date readTime;

    /** 资产id1 */
    @Excel(name = "资产id1")
    private String assetsId1;

    /** 资产id2 */
    @Excel(name = "资产id2")
    private String assetsId2;

    /** 资产id3 */
    @Excel(name = "资产id3")
    private String assetsId3;

    public Date getReadTime() {
        return readTime;
    }

    public void setReadTime(Date readTime) {
        this.readTime = readTime;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setDeviceSn(String deviceSn) 
    {
        this.deviceSn = deviceSn;
    }

    public String getDeviceSn() 
    {
        return deviceSn;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setVoicePath(String voicePath) 
    {
        this.voicePath = voicePath;
    }

    public String getVoicePath() 
    {
        return voicePath;
    }
    public void setReadStatus(Integer readStatus) 
    {
        this.readStatus = readStatus;
    }

    public Integer getReadStatus() 
    {
        return readStatus;
    }
    public void setAssetsId1(String assetsId1) 
    {
        this.assetsId1 = assetsId1;
    }

    public String getAssetsId1() 
    {
        return assetsId1;
    }
    public void setAssetsId2(String assetsId2) 
    {
        this.assetsId2 = assetsId2;
    }

    public String getAssetsId2() 
    {
        return assetsId2;
    }
    public void setAssetsId3(String assetsId3) 
    {
        this.assetsId3 = assetsId3;
    }

    public String getAssetsId3() 
    {
        return assetsId3;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("deviceId", getDeviceId())
            .append("deviceSn", getDeviceSn())
            .append("content", getContent())
            .append("voicePath", getVoicePath())
            .append("readStatus", getReadStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("assetsId1", getAssetsId1())
            .append("assetsId2", getAssetsId2())
            .append("assetsId3", getAssetsId3())
            .toString();
    }
}
